package com.rightsidetech.activity.mapper;

import com.rightsidetech.activity.dto.request.store.*;
import com.rightsidetech.activity.dto.response.store.*;
import com.rightsidetech.activity.dto.response.store.app.MtActivityRecordDetailResp;
import com.rightsidetech.activity.dto.response.store.app.MtAppDetailResp;
import com.rightsidetech.activity.dto.response.store.app.MtAppHomeResp;
import com.rightsidetech.activity.entity.MtActivity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MtActivityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MtActivity record);

    int insertSelective(MtActivity record);

    MtActivity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MtActivity record);

    int updateByPrimaryKey(MtActivity record);

    List<MtActivityServicePageResp> page(MtActivityServicePageReq req);

    List<MtActivityServiceInfoPageResp> activityInfoPage(MtActivityServiceInfoPageReq req);

    List<MtActivityEndPageResp> activityEndPage(MtActivityEndPageReq req);

    MtActivity selectByName(String name);

    int updateVerify(MtActivityVerifyReq req);

    int updateDel(Long actId);

    List<MtAppHomeResp> selectAppList(@Param("field") String field);

    MtAppDetailResp selectDetailById(@Param("id") Long id);

    List<MtActivity> selectHeadAct(@Param("dicCode") String dicCode);

    List<MtActivityRecordDetailResp> selectRecordDetailList(@Param("storeId") Long storeId);

    int updateStatus();

    List<MtActivity> selectTimeOverAct();

    List<MtActivityBannerResp> selectBannerList(MtActivityBannerReq req);
}